package test;

public class Point {
	public int [] val = new int[2];
	
	public Point(int v1, int v2){
		this.val[0] = v1;
		this.val[1] = v2;
	}
	@Override
	public boolean equals(Object obj) {
		Point p = (Point)obj;
		if(p.val[0]==this.val[0] && p.val[1]==this.val[1]) return true;
		return false;
	}
	@Override
	public int hashCode() {
		return this.val[0] + this.val[1];
	}
}
